#define  _CRT_SECURE_NO_WARNINGS
#include"dlist.h"

void test01()
{
	DLTNode* plist = DLTNodeInit();
	DLTNodePushBack(plist, 1);
	DLTNodePushBack(plist, 2);
	DLTNodePushBack(plist, 3);
	DLTNodePrint(plist);
	//DLTNodePrint(plist);
	DLTNode* ps = DLTNodeFind(plist, 2);
	if(ps)
	{
		DLTNodeInsert(ps, 100);
	}
	DLTNodePrint(plist);
	ps = DLTNodeFind(plist, 2);
	if (ps)
	{
		DLTNodeErase(ps);
	}
	DLTNodePrint(plist);
}

int main()
{
	test01();
	return 0;
}